﻿@using JobButenko.Models
@model List<EmployedJob>

@{
    ViewBag.Title = "Заявки на вакансии";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Заявки на вакансии</h2>

@foreach (EmployedJob item in Model)
{
    @Html.HiddenFor(modelItem => item.VacancyId)
    <div>
        <table>
            <tr>
                <td>Работодатель: </td>
                <td>@Html.ActionLink(item.Vacancy.Employer.EmployerName, "ViewEmployerInfo", "Employer", new {id = item.Vacancy.EmploedId}, null)</td>
            </tr>
            <tr>
                <td>Вакансия: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.VacancyName)</td>
            </tr>
            <tr>
                <td>Сфера деятельности: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.ProfessionalField.ProfFieldName)</td>
            </tr>
            <tr>
                <td>Должность: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.Post.PostName)</td>
            </tr>
            <tr>
                <td>Зарплата: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.Salary.SalaryVol)</td>
            </tr>
            <tr>
                <td>Информация: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.Info)</td>
            </tr>
            <tr>
                <td>Дата выхода на работу: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.DateOfStartWork)</td>
            </tr>
            <tr>
                <td>Действительна до: </td>
                <td>@Html.DisplayFor(modelItem => item.Vacancy.ValidityJob)</td>
            </tr>
            <tr>
                <td></td>
                <td><input id="delVacancy" class="buttonForm" type="submit" onclick=" delVacancy() "   value="Отписаться от вакансии"/></td>
            </tr>
        </table>
    </div>
}